#include "QNBLogin.h"
#include <QApplication>

#include "QNBConfig.h"
#include "QNBHeartThread.h"
#include "log.h"

#include <QTextCodec>

#ifdef QT_STATIC
#include <QtCore/QtPlugin>
Q_IMPORT_PLUGIN(DSServicePlugin)
#endif

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QTextCodec::setCodecForLocale(QTextCodec::codecForName("GBK"));
    //logSysInit("NetbarClient_log.txt");

    QNBConfig::getInstance();

    QNBLogin::getInstance()->show();

    bool ret = a.exec();

    QNBLogin::clearResource();

    return ret;
}
